package com.zeildx.glife.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity   //表示创建实体类
public class Word {
    @PrimaryKey(autoGenerate = true)  //设为主键，并自动生成
    private int id;
    @ColumnInfo(name = "date")
    private String worddate;
    @ColumnInfo(name = "schedule")
    private String wordschedule;

    public Word(String worddate,String wordschedule) {
        this.worddate = worddate;
        this.wordschedule = wordschedule;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getWorddate() {
        return worddate;
    }

    public void setWorddate(String worddate) {
        this.worddate = worddate;
    }

    public String getWordschedule() {
        return wordschedule;
    }

    public void setWordschedule(String wordschedule) {
        this.wordschedule = wordschedule;
    }
}
